<?php //$this->Html->meta("keywords", h($article['Article']['meta_key']), array("inline" => false));?>
<?php //$this->Html->meta("description", h($article['Article']['meta_desc']), array("inline" => false));?>
<?php $this->Html->css('/css/products.css', array("inline" => false));?>
<?php echo $this->element('sub_menu'); ?>
<div class="container mt-10 pt-30 pb-50">
    <div id="Main" class="col-sm-12 col-md-12">
      <section class="product-list row cf mb-40">
		<?php 
        if(count($products)) :
        foreach($products as $product) :?>
        <div class="col-sm-3 col-md-3">
          <div class="product">
            <div class="img-product">
              <img src="/files/images/<?php echo $product['Product']['image'];?>" alt="" class="img-responsive" />
              <!--<a href="/products/view/<?php echo $product['Product']['product_id'];?>" class="product-quickview btn btn-quickview">Quick View</a>-->
              <?php echo $this->Html->link( __('Quick View',true), array(
                  'controller' => 'products',
                  'action' => 'view',
                  'id' => $product['Product']['product_id'],
                  'slug' => ($product['Product']['alias'])?str_replace(' ', '-',$product['Product']['alias']):str_replace(' ', '-', $product['Product']['name_en'])
                ), 
                array ('class' => 'product-quickview btn btn-quickview')
              );
              ?>
            </div>
            <h3 class="align-center title-02">
                <?php //echo $product['Product']['name' . $code];?>
                <?php echo $this->Html->link( $product['Product']['name' . $code], array(
                  'controller' => 'products',
                  'action' => 'view',
                  'id' => $product['Product']['product_id'],
                  'slug' => ($product['Product']['alias'])?str_replace(' ', '-', $product['Product']['alias']):str_replace(' ', '-', $product['Product']['name_en'])
                ));
                ?>
            </h3>
          </div>
        </div>
        <?php endforeach;?>
        <?php else:?>
          <div class="col-sm-4 col-md-4"><?php echo __('Have no a product finding ...')?></div>
        <?php endif;?>
      </section><!-- /section -->
	  
	   <?php if($this->Paginator->counter('{:pages}') > 1) :?>
        <div class="pagging">
            <ul>
            <?php echo $this->Paginator->numbers(array('separator' => '', 'tag' => 'li', 'currentClass' => 'current'));?>
            </ul>
        </div>
        <?php endif;?>
	
	
    </div><!-- /#Main -->
</div><!-- /container -->